package com.xbongbong.pro.sms.model;

import com.xbongbong.saas.domain.entity.SmsConfigEntity;

import java.util.List;
import java.util.Map;

/**
 * @description:
 * @Author: hongxiao
 * @date: 2019-01-12 16:15
 */
public interface SmsConfigModel {
    Integer insert(SmsConfigEntity entity);

    Integer update(SmsConfigEntity entity);

    void updateBatch(List<SmsConfigEntity> list);

    Integer save(SmsConfigEntity entity);

    Integer deleteByKey(Long key);

    SmsConfigEntity getByKey(Long key);

    List<SmsConfigEntity> findEntitys(Map<String, Object> param);

    Integer getEntitysCount(Map<String, Object> param);

    void deductFee(String corpid, String content);

    boolean availableSign(String corpid);

    Integer getSmsCounts(String corpid);

    SmsConfigEntity getEntityByCorpid(String corpid);
}
